package com.lee.controller;

import com.lee.utils.RedisUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DemoController {

    @Autowired
    private RedisUtil redisUtil ;

    @RequestMapping("/setValue")
    public String setValue(){
        redisUtil.set("aa","111111111");
        return "成功";
    }

    @RequestMapping("/getValue")
    public Object getValue(){
        Object aa = redisUtil.get("aa");
        return aa;
    }
}
